package com.pansoft.openplanet.bean;

/**
 * 市场交易所bean
 * @author will
 */
public class MarketSiteBean {

    private String uniqueKey;
    private String title;
    private String url;
    private String logo;
    private boolean isSelected;

    private MarketSiteBean(Builder builder) {
        uniqueKey = builder.uniqueKey;
        title = builder.title;
        url = builder.url;
        logo = builder.logo;
        isSelected = builder.isSelected;
    }


    public static final class Builder {
        private String uniqueKey;
        private String title;
        private String url;
        private String logo;
        private boolean isSelected;

        public Builder() {
        }

        public Builder uniqueKey(String val) {
            uniqueKey = val;
            return this;
        }

        public Builder title(String val) {
            title = val;
            return this;
        }

        public Builder url(String val) {
            url = val;
            return this;
        }

        public Builder logo(String val) {
            logo = val;
            return this;
        }

        public Builder isSelected(boolean val) {
            isSelected = val;
            return this;
        }

        public MarketSiteBean build() {
            return new MarketSiteBean(this);
        }
    }

    public String getUniqueKey() {
        return uniqueKey;
    }

    public void setUniqueKey(String uniqueKey) {
        this.uniqueKey = uniqueKey;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }
}
